package com.jumi.microservice.enumerate;

import com.jumi.microservice.common.base.dto.AbstractEnum;

/**
 * @author by mazhao
 * @Classname WalletType
 * @Description TODO
 * @Date 2020/7/21 9:13
 */
public enum LogisticsStatusEnum implements AbstractEnum<Byte> {

    /**
     * 商品状态
     */
    WAIT_SEND(0, "待发货"),

    PART_SEND(1, "部分发货"),

    WAIT_RECEIVE(2, "待收货"),

    CONFIRM_RECEIVE(3, "已完成"),

    UN_PAY(-1, "未支付"),

    CANCEL(-2,"已取消");

    private Byte code;
    private String msg;

    LogisticsStatusEnum(int code, String msg) {
        this.code = (byte) code;
        this.msg = msg;
    }

    @Override
    public Byte getCode() {
        return code;
    }

    public void setCode(byte code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
